import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 品牌信息
 */
@Entity('product_brand')
export class ProductBrandEntity extends BaseEntity {
  @Index()
  @Column({ comment: '名称', length: 255 })
  name: string;

  @Column({ comment: 'Logo', nullable: true })
  logo: string;

  @Column({ comment: '品牌描述', type: 'text', nullable: true })
  description: string;

  @Column({ comment: '成立年份', nullable: true })
  foundingYear: number;
}
